package lay
{
	import flash.display.Sprite;
	import myutils.MyButton;
	import myutils.MyButtonSprite;
	import flash.events.KeyboardEvent;
	import flash.events.MouseEvent;

	public class UI extends Sprite
	{
		public function UI()
		{
			var button1:MyButton = new MyButton(100,40,"安妮",0x900000);
			button1.x = 20;
			button1.y = 20;
			(button1.downState as MyButtonSprite).textfield.text = "你妹";
			this.addChild(button1);
			button1.addEventListener(MouseEvent.CLICK,onbutton1);
		}
		
		private function onbutton1(event:MouseEvent):void
		{
			Demo.getInstance().logMess("点你妹啊");			
		}
	}
}